package com.tfswx.jcyw.dmzc.window;

import com.intellij.openapi.ui.DialogWrapper;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import javax.swing.*;

public final class ConfirmDialog extends DialogWrapper {
    private final String content;

    public ConfirmDialog(@Nullable String title, @NotNull String content) {
        super(true);
        this.setTitle(title);
        this.content = content;
        this.init();
    }

    @Override
    @NotNull
    protected JComponent createCenterPanel() {
        return new JLabel(this.content);
    }
}
